<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">

function verifica(){

	if (isNaN(document.dados.codigo.value)){ 
	alert('Você não digitou um número');
	document.dados.codigo.focus();
	}
}
function preencher(cod,qtd,qtdmin,custo,venda) 
{ 
document.dados.codigo.value=cod;	
document.dados.nome.value="Teclado";
document.dados.descricao.value="Teclado USB";
document.dados.qtd.value=qtd;
document.dados.qtdmin.value=qtdmin;
document.dados.valorcusto.value=custo;
document.dados.valorvenda.value=venda;
document.dados.fornecedor.value="All nations";
}
 
 
function funcao1() 
{ 
	if((document.dados.nome.value == "") && (document.dados.codigo.value == "" ))	
	alert("Preencha o campo codigo ou nome para consulta.");
	else{
	document.dados.action="ServletConsultarprod";
	document.dados.submit();
	}		
} 

function funcao2() 
{ 
	document.dados.action="ServletCadastrarprod";
	document.dados.submit();
} 
function limpar()
{

	document.dados.codigo.value="";
	document.dados.nome.value="";
	document.dados.descricao.value="";
	document.dados.qtd.value="";
	document.dados.qtdmin.value="";
	document.dados.valorcusto.value="";
	document.dados.valorvenda.value="";
	document.dados.fornecedor.value="";
}

</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jvendor - Cadastro de Clientes</title>
<link rel="shortcut icon" href="imagens/favicon.ico" />
<style type="text/css">

<!--
body {
	font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
	background-color: #42413C;
	margin: 0;
	padding: 0;
	color: #000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
	padding: 0;
	margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
	margin-top: 0;	 /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
	padding-right: 15px;
	padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
	font-family: Verdana, Arial, Helvetica, sans-serif;
	text-align: center;
	vertical-align: middle;
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
	border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
	color: #42413C;
	text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
	color: #6E6C64;
	text-decoration: underline;
}
a:hover, a:active, a:focus {
	text-decoration: none;
}


.container {
	width: 960px;
	background-color: #FFF;
	margin: 0 auto; 
}

.header {
	background-color: #99CCFF;
	background-attachment: fixed;
	background-image: url(imagens/background.gif);
	background-repeat: no-repeat;
	box-shadow: 0px 1px 9px #1E90FF;
	background-position: left center;
	margin-bottom: -15px;
}

.content {
	padding: 49px 0px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-position: left center;
	margin-bottom: -15px;
}

/* ~~ The footer ~~ */
.footer {
	padding: 10px 0;
	background-color: #CCC49F;
}

/* ~~ miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
	float: left;
	margin-right: 8px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
	clear:both;
	height:0;
	font-size: 1px;
	line-height: 0px;
}
#cssmenu ul,
#cssmenu li,
#cssmenu span,
#cssmenu a {
	margin: 10;
	/* [disabled]padding: 0; */
	position: relative;
}
#cssmenu:after,
#cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu a {
  color: #333333;
  display: inline-block;
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif;
  font-size: 12px;
  min-width: 63px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 0 #eeeeee;
}
#cssmenu ul {
	list-style: none;
	
}
#cssmenu > ul > li {
	float: left;
}
#cssmenu > ul > li.active a {
  background: #d9d9d9 url(images/grad_light.png) repeat-x left bottom;
  background: -moz-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d9d9d9), color-stop(100%, #bfbfbf));
  background: -webkit-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -o-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -ms-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: linear-gradient(to bottom, #d9d9d9 0%, #bfbfbf 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#d9d9d9', endColorstr='#bfbfbf', GradientType=0);
  box-shadow: inset 0 0 10px #979797, inset 0 10px 10px #979797;
  -moz-box-shadow: inset 0 0 10px #979797, inset 0 10px 10px #979797;
  -webkit-box-shadow: inset 0 0 10px #979797, inset 0 10px 10px #979797;
  filter: none;
}
#cssmenu > ul > li.active a:hover {
  background: -moz-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d9d9d9), color-stop(100%, #bfbfbf));
  background: -webkit-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -o-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -ms-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: linear-gradient(to bottom, #d9d9d9 0%, #bfbfbf 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#d9d9d9', endColorstr='#bfbfbf', GradientType=0);
  filter: none;
}
#cssmenu > ul > li a {
  box-shadow: inset 0 0 0 1px #ffffff;
  -moz-box-shadow: inset 0 0 0 1px #ffffff;
  -webkit-box-shadow: inset 0 0 0 1px #ffffff;
  background: #bfbfbf url(images/grad_light.png) repeat-x left top;
  background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(50%, #e5e5e5), color-stop(51%, #d7d7d7), color-stop(100%, #ededed));
  background: -webkit-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: -ms-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed', GradientType=0);
  border-bottom: 1px solid #d2d2d2;
  border-top: 1px solid #d2d2d2;
  border-right: 1px solid #d2d2d2;
  line-height: 34px;
  padding: 0 35px;
  filter: none;
}
#cssmenu > ul > li a:hover {
  background: #ffffff url(images/grad_light.png) repeat-x left bottom;
  background: -moz-linear-gradient(top, #d9d9d9 0%, #bfbfbf 50%, #b0b0b0 51%, #c7c7c7 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d9d9d9), color-stop(50%, #bfbfbf), color-stop(51%, #b0b0b0), color-stop(100%, #c7c7c7));
  background: -webkit-linear-gradient(top, #d9d9d9 0%, #bfbfbf 50%, #b0b0b0 51%, #c7c7c7 100%);
  background: -o-linear-gradient(top, #d9d9d9 0%, #bfbfbf 50%, #b0b0b0 51%, #c7c7c7 100%);
  background: -ms-linear-gradient(top, #d9d9d9 0%, #bfbfbf 50%, #b0b0b0 51%, #c7c7c7 100%);
  background: linear-gradient(to bottom, #d9d9d9 0%, #bfbfbf 50%, #b0b0b0 51%, #c7c7c7 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed', GradientType=0);
  filter: none;
}
#cssmenu > ul > li:first-child a {
  border-radius: 5px 0 0 5px;
  -moz-border-radius: 5px 0 0 5px;
  -webkit-border-radius: 5px 0 0 5px;
  border-left: 1px solid #d2d2d2;
}
#cssmenu > ul > li:last-child a {
  border-radius: 0 5px 5px 0;
  -moz-border-radius: 0 5px 5px 0;
  -webkit-border-radius: 0 5px 5px 0;
}
#cssmenu .has-sub:hover ul {
  display: block;
}
#cssmenu .has-sub ul {
  display: none;
  position: absolute;
  top: 36px;
  left: -1px;
  min-width: 100%;
  text-align: center;
  *width: 100%;
}
#cssmenu .has-sub ul li {
  text-align: center;
}
#cssmenu .has-sub ul li a {
  border-top: 0 none;
  border-left: 1px solid #d2d2d2;
  display: block;
  line-height: 120%;
  padding: 9px 5px;
  text-align: center;
}

.campo-txt{
border: 1px solid #1E90FF;
	color: #000;
	height:20px;
	background: #fff;
	-webkit-border-radius: 10px;
	border-radius: 5px; 
	margin-left: 20px;	
	font: 15px Helvetica, sans-serif;
	font-style:normal;
	box-shadow:0px 1px 9px #000000;}

.clear{
	height:5px;	
	}

.botao {     /*Edita a aparencia do botao*/
  display: inline-block;
  width:150px;
  height:60px;
  padding: 20px;
   font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif;
  font-size: 15px;
  font-weight:bold;
  text-shadow: 1px 1px #D3D3D3;
	-webkit-border-radius: 10px;
	border-radius: 5px;  
 box-shadow: inset 0 0 0 1px #ffffff;
  -moz-box-shadow: inset 0 0 0 1px #ffffff;
  -webkit-box-shadow: inset 0 0 0 1px #ffffff;
  background: #bfbfbf url(images/grad_light.png) repeat-x left top;
  background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(50%, #e5e5e5), color-stop(51%, #d7d7d7), color-stop(100%, #ededed));
  background: -webkit-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: -ms-linear-gradient(top, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed', GradientType=0);
  border-bottom: 1px solid #d2d2d2;
  border-top: 1px solid #d2d2d2;
  border-right: 1px solid #d2d2d2;
  line-height: 34px;
  padding: 0 35px;
  filter: none;






}
.botao:hover {/*Efeito de quando passa o mouse em cima do botao*/
  filter: none;
  background: -moz-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d9d9d9), color-stop(100%, #bfbfbf));
  background: -webkit-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -o-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: -ms-linear-gradient(top, #d9d9d9 0%, #bfbfbf 100%);
  background: linear-gradient(to bottom, #d9d9d9 0%, #bfbfbf 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#d9d9d9', endColorstr='#bfbfbf', GradientType=0);
  filter: none;
 
 
 
 }
.container center #cssmenu table {
	font-weight: bold;
}


-->
</style>




</head>

<body>

<div class="container">
  <div class="header">
    <p><img src="imagens/Jvendorlogo.png" width="174" height="57" style="margin-left: 10px; margin-top: 25px; margin-bottom:-5px; font-family: Verdana, Arial, Helvetica, sans-serif;" /></p>
    <p>&nbsp;</p>
  </div><center>
  <div id='cssmenu'>
    <ul>
   <li class='active '><a href='menuprincipal.html'><span>Menu Princípal</span></a></li>
   <li class='has-sub '><a href='#'><span>Cadastrar</span></a>
      <ul>
         <li><a href='cadclientes.html'><span>Clientes</span></a></li>
         <li><a href='cadfuncionario.html'><span>Funcion&aacute;rios </span></a></li>
         <li><a href='cadfornecedor.html'><span>Fornecedores</span></a></li>
         <li><a href='cadproduto.html'><span>Produtos</span></a></li></a></li>
         <li><a href='cadestoque.html'><span>Movimento Estoque</span></a></li></a></li>
      </ul>
   </li>
    <li class='has-sub '><a href='ordemservico.html'><span>OS</span></a>
      <ul>
         <li><a href='Consultacli.jsp'><span>Clientes</span></a></li>
         <li><a href='Consultafunc.jsp'><span>Funcion&aacute;rios </span></a></li>
         <li><a href='Consultafor.jsp'><span>Fornecedores</span></a></li>
         <li><a href='ProdConsulta.jsp'><span>Produtos</span></a></li>
      </ul>
   </li>
     <li class='has-sub '><a href='relatorio.html'><span>Relat&oacute;rios</span></a>
      <ul>
         <li><a href='ServletRelClientes'><span>Clientes Cadastrados</span></a></li>
         <li><a href='#'><span>Vendas por Funcion&aacute;rios</span></a></li>
         <li><a href='#'><span>Vendas por Cart&otilde;es</span></a></li>
         <li><a href='relatoriovenda.html'><span>Vendas Realizadas</span></a></li>
         <li><a href='#'><span>Estoque</span></a></li>
      </ul>
   </li>
           <li class='has-sub '><a href='troca.html'><span>Troca</span></a>
        </li>
        
        <li class='has-sub '><a href='venda.html'><span>Venda</span></a>
        </li>

        <li class='has-sub '><a href='index.html'><span>Sair</span></a>

</ul>
      <div class="clear"></div>
		<p>&nbsp;</p>
		<p><strong>Cadastro de Fornecedores</strong></p>
	  <div class="clear">
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      </div>
      <form name="dados" method="post" action="">
      <table width="1005" height="344">
        <tr>
            <td height="27" colspan="3">&nbsp;</td>
            <td width="31" rowspan="10">&nbsp;</td>
          <td width="250" rowspan="10"><p>
              <input type="button" class="botao" value="Consultar" onclick="funcao1()"/>
              <input type="button" class="botao" value="Editar"  onclick=""/>
             <input type="button" class="botao" value="Excluir"  onclick=""/> 
              <input type="button" class="botao" value="Salvar"  onclick="funcao2()"/>
              <input type="button" class="botao" value="Limpar"  onclick="limpar()"/>
          </p></td>
          <td width="106" rowspan="10">&nbsp;</td>
        </tr>
        <tr>
       
	
       <td width="48">&nbsp;</td>
        <td width="166" height="27">Código:</td>
        <td width="376"><input type="text" name="codigo" id="codi" class="campo-txt" value="" onblur="verifica()"/></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="27">Nome:</td>
        <td><input type="text" name="nome" class="campo-txt" value="" style="width: 350px;" /></td>
        </tr>
         <tr>
        <td>&nbsp;</td>
        <td height="27">Contato:</td>
        <td><input type="text" name="contato" class="campo-txt" value="" style="width: 350px;" /></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="27">Telefone:</td>
        <td><input type="text" name="telefone" class="campo-txt" value="" style="width: 350px;"/></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="30">Endereço:</td>
        <td><input type="text" name="endereco" class="campo-txt" value="" /></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="33">Bairro:</td>
        <td><input type="text" name="bairro" class="campo-txt" value=""  /></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="27">Cep:</td>
        <td><input type="text" name="cep" class="campo-txt" value="" /></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="27">Cidade:</td>
        <td><input type="text" name="cidade" class="campo-txt" value="" /></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="29">Estado:</td>
        <td><input type="text" name="estado" class="campo-txt" value="" style="width: 250px;"/></td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td height="27">Cnpj:</td>
        <td><input type="text" name="cnpj" class="campo-txt" value="" /></td>
        </tr> 
        </form>
      <tr>
        <td>&nbsp;</td>
        <td height="66">&nbsp;</td>
        <td>&nbsp;</td>
        </tr>
    </table>
  </div></center>
  <div class="content"><!-- end .content -->
    
  </div>
  <!-- end .container --></div>
<span class="header"></span>
</body>
</html>
